<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	function xgbj(value) {
		$.post('grade/getgrcj',{bjId:value},function(data){
			$('#stu').html(data);
		},'html');
	}
	function cx() {
		var stuId=$('#stu').val();
		$('#table').load('grade/getgrcj01',{stuId:stuId});
		
	}
	function xgcj(id,value) {
		$.post('grade/xgcj1',{id:id,grade:value},function(data){});
	}
</script>
<h2>个人成绩管理</h2>
<div >
	<p align="center">
		<label>班级：</label> 
		<select id="bj" onchange="xgbj(this.value)">
			<option value="0">--请选择--</option>
			<c:forEach items="${list}" var="bj">
				<option value="${bj.id}">${bj.name}</option>
			</c:forEach>
		</select> 
		<label>学生：</label> 
		<select id="stu">
			<option value="0">--请选择--</option>
			<c:forEach items="${stus}" var="stu">
				<option value="${stu.id}">${stu.name}</option>
			</c:forEach>
		</select>
		<button onclick="cx()">查询</button>
	</p>
	
	
	</div>
	<div id="table">
	</div>
